type html/template.context
99 uses
html/template (current package)
context.go#L19: type context struct {
context.go#L30: func (c context) String() string {
context.go#L39: func (c context) eq(d context) bool {
context.go#L51: func (c context) mangle(templateName string) string {
escape.go#L22: c, _ := tmpl.esc.escapeTree(context{}, node, name, 0)
escape.go#L88: output map[string]context
escape.go#L107: breaks []context // context at each break action
escape.go#L108: continues []context // context at each continue action
escape.go#L115: map[string]context{},
escape.go#L133: func (e *escaper) escape(c context, n parse.Node) context {
escape.go#L140: return context{state: stateDead}
escape.go#L146: return context{state: stateDead}
escape.go#L164: func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
escape.go#L187: return context{
escape.go#L213: return context{
escape.go#L423: func nudge(c context) context {
escape.go#L441: func join(a, b context, node parse.Node, nodeName string) context {
escape.go#L485: return context{
escape.go#L492: func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
escape.go#L531: func joinRange(c0 context, rc *rangeContext) context {
escape.go#L555: func (e *escaper) escapeList(c context, n *parse.ListNode) context {
escape.go#L572: func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (context, bool) {
escape.go#L606: func (e *escaper) escapeTemplate(c context, n *parse.TemplateNode) context {
escape.go#L616: func (e *escaper) escapeTree(c context, node parse.Node, name string, line int) (context, string) {
escape.go#L630: return context{
escape.go#L635: return context{
escape.go#L656: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L667: return context{
escape.go#L678: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L679: filter := func(e1 *escaper, c1 context) bool {
escape.go#L717: func (e *escaper) escapeText(c context, n *parse.TextNode) context {
escape.go#L786: func contextAfterText(c context, s []byte) (context, int) {
escape.go#L813: return context{
escape.go#L844: return context{state: stateTag, element: element}, i
html.go#L178: s, c, i, allText := []byte(html), context{}, 0, true
html.go#L216: c, i = context{state: stateTag, element: c.element}, i1
transition.go#L16: var transitionFunc = [...]func(context, []byte) (context, int){
transition.go#L48: func tText(c context, s []byte) (context, int) {
transition.go#L55: return context{state: stateHTMLCmt}, i + 4
transition.go#L71: return context{state: stateTag, element: e}, j
transition.go#L86: func tTag(c context, s []byte) (context, int) {
transition.go#L93: return context{
transition.go#L100: return context{state: stateError, err: err}, len(s)
transition.go#L104: return context{
transition.go#L131: return context{state: state, element: c.element, attr: attr}, j
transition.go#L135: func tAttrName(c context, s []byte) (context, int) {
transition.go#L138: return context{state: stateError, err: err}, len(s)
transition.go#L146: func tAfterName(c context, s []byte) (context, int) {
transition.go#L171: func tBeforeValue(c context, s []byte) (context, int) {
transition.go#L189: func tHTMLCmt(c context, s []byte) (context, int) {
transition.go#L191: return context{}, i + 3
transition.go#L212: func tSpecialTagEnd(c context, s []byte) (context, int) {
transition.go#L215: return context{}, i
transition.go#L247: func tAttr(c context, s []byte) (context, int) {
transition.go#L252: func tURL(c context, s []byte) (context, int) {
transition.go#L264: func tJS(c context, s []byte) (context, int) {
transition.go#L288: return context{
transition.go#L301: func tJSDelimited(c context, s []byte) (context, int) {
transition.go#L320: return context{
transition.go#L342: return context{
transition.go#L354: func tBlockCmt(c context, s []byte) (context, int) {
transition.go#L371: func tLineCmt(c context, s []byte) (context, int) {
transition.go#L404: func tCSS(c context, s []byte) (context, int) {
transition.go#L477: func tCSSStr(c context, s []byte) (context, int) {
transition.go#L502: return context{
transition.go#L517: func tError(c context, s []byte) (context, int) {